physics_particle_get_radius

Get the current radius defined for all particles.

语法:

physics_particle_get_radius()


返回: Real(实数)


描述

With this function you can find out what the current radius (in pixels) is for particles in the physics simulation (you can set this value using physics_particle_set_radius()).


例如:

if physics_particle_get_radius() < 32
   {
   physics_particle_set_radius(physics_particle_get_radius() + 1);
   }

The above code will check the current radius of the particles in the simulation and if it is less than 32, then it will increase their size by 1.


上一页: Soft Body Particles
下一页: physics_particle_get_density
© Copyright YoYo Games Ltd. 2018 All Rights Reserved